package views;
import javax.swing.*;
import java.util.*;
import java.awt.*;

public class CalculationHistory extends JPanel{
	private JLabel label;
	private JTextArea history;
	private JScrollPane scroll;
	
	public CalculationHistory(){		
		this.setLayout(new BorderLayout());
		
		label = new JLabel("Calculation History");
		
		history = new JTextArea();
		history.setEditable(false);
		scroll = new JScrollPane(history);
		
		this.add(label, BorderLayout.NORTH);
		this.add(scroll, BorderLayout.CENTER);
	} 
	
	public void addString(String string){
		history.append(string);
	}
	
}
